f = open(r'day04文件操作\作业\a1.txt', 'r', encoding='utf-8')
lst = []
for i in f:
    dic = {}
    for em in i.split():
        k, v = em.split(':')
        dic[k] = v
    lst.append(dic)
print(lst)